package com.admin.dbdao;

import com.data.bean.Account;
import com.data.dbdao.BaseDao;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;
import java.util.List;

/**
 * 管理员查看账号信息
 *
 * @author:HingLo
 * @create 2017-09-29 9:02
 **/
@Repository
@Transactional
public class AccountAdminDao extends BaseDao {

    public List<Account> lookAccountInfoDao(String id) {
        String hql = "from Account where id=?";
        return (List<Account>) super.findMassageDao(hql, id);
    }
}
